package com.kinghunt.misp.common.dto.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Description 树结构
 * @Author jiangtao
 * @Date 2023/7/4 19:13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Tree<T> implements Serializable {
    private static final long serialVersionUID = 7713353906888001556L;

    /**
     * 当前节点
     */
    private T currentNode;

    /**
     * 子节点
     */
    private List<Tree<T>> children;
}
